﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ReportViewWidget.ascx.cs" Inherits="Widgets_ReportViewWidget" %>
<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<asp:Panel ID="SettingsPanel" runat="server" Visible="false">
<table cellspacing="0" cellpadding="0">
    <tbody>
        <tr>
            <td align="center" valign="middle"><asp:Literal ID="ltlShow"  EnableViewState="false"   runat="server" Text="年份：" /></td>
            <td align="center" valign="middle"><asp:DropDownList ID="YearDropDownList" runat="Server" /></td>
            <td align="center" valign="middle"><asp:Literal ID="Literal1"  EnableViewState="false"   runat="server" Text="月份：" /></td>
            <td align="center" valign="middle">
            <asp:DropDownList ID="MonthDropDownList" runat="Server">
                                    <asp:ListItem Value="1">一月</asp:ListItem>
                                    <asp:ListItem Value="2">二月</asp:ListItem>
                                    <asp:ListItem Value="3">三月</asp:ListItem>
                                    <asp:ListItem Value="4">四月</asp:ListItem>
                                    <asp:ListItem Value="5">五月</asp:ListItem>
                                    <asp:ListItem Value="6">六月</asp:ListItem>
                                    <asp:ListItem Value="7">七月</asp:ListItem>
                                    <asp:ListItem Value="8">八月</asp:ListItem>
                                    <asp:ListItem Value="9">九月</asp:ListItem>
                                    <asp:ListItem Value="10">十月</asp:ListItem>
                                    <asp:ListItem Value="11">十一月</asp:ListItem>
                                    <asp:ListItem Value="12">十二月</asp:ListItem>
                                </asp:DropDownList>
            </td>
            <td align="center" valign="middle"><asp:Literal ID="ltlShow1" EnableViewState="false"  runat="server" Text="建筑单位：" /></td>
            <td align="center" valign="middle"><asp:DropDownList ID="BuildingDropDownList" runat="Server" /></td>
            <td align="center" valign="middle"><asp:Button ID="SaveSettings" runat="Server" OnClick="SaveSettings_Click" Text="<%$Resources:SharedResources, Save%>" /></td>
        </tr>
    </tbody>
</table>
</asp:Panel>
<div style="margin:0 auto;padding:0;text-align:center;">
<rsweb:ReportViewer ID="ReportViewer1" runat="server" Width="96%" Height="900px" 
        Font-Names="Verdana" Font-Size="8pt" InteractiveDeviceInfos="(集合)" 
        WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt">
    <LocalReport ReportPath="Reports\EnergyMonthRDLC.rdlc">
        <DataSources>
            <rsweb:ReportDataSource DataSourceId="ObjectDataSource1" Name="DataSet1" />
            <rsweb:ReportDataSource DataSourceId="ObjectDataSource2" Name="DataSet2" />
            <rsweb:ReportDataSource DataSourceId="ObjectDataSource3" Name="DataSet3" />
        </DataSources>
    </LocalReport>
</rsweb:ReportViewer>
    <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
        SelectMethod="GetAmmeterGasCoal" 
        TypeName="Dropthings.ReportViewData.ReportViewDataProvide">
        <SelectParameters>
            <asp:Parameter Name="identifyCode" Type="String"/>
            <asp:Parameter Name="year" Type="Int32"/>
            <asp:Parameter Name="month" Type="Int32"/>
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="GetEnergyMonthDatas" 
        TypeName="Dropthings.ReportViewData.ReportViewDataProvide">
        <SelectParameters>
            <asp:Parameter Name="identifyCode" Type="String"/>
            <asp:Parameter Name="year" Type="Int32"/>
            <asp:Parameter Name="month" Type="Int32"/>
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" 
        SelectMethod="GetCurrentMonthMoney" 
        TypeName="Dropthings.ReportViewData.ReportViewDataProvide">
        <SelectParameters>
            <asp:Parameter Name="identifyCode" Type="String"/>
            <asp:Parameter Name="year" Type="Int32"/>
            <asp:Parameter Name="month" Type="Int32"/>
        </SelectParameters>
    </asp:ObjectDataSource>
</div>
